package com.sfx.concurrent.demo.线程基础.线程的创建;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "c.EmptyThreadDemo")
public class EmptyThreadDemo {
    public static void main(String args[]) throws InterruptedException {
        //使用Thread类创建和启动线程
        Thread thread = new Thread();
        log.info("线程名称：" + thread.getName());
        log.info("线程ID：" + thread.getId());
        log.info("线程状态：" + thread.getState());
        log.info("线程优先级：" + thread.getPriority());
        log.info(thread.getName() + " 运行结束.");
        thread.start();
    }
}